package com.cr.front.order.pojo;

import lombok.Getter;

import java.time.LocalDate;
@Getter
public class TimeRange {
    private final LocalDate startDate;
    private final LocalDate endDate;

    public TimeRange(LocalDate startDate, LocalDate endDate) {
        this.startDate = startDate;
        this.endDate = endDate;
    }

    @Override
    public String toString() {
        return String.format("%s to %s", startDate, endDate);
    }
}
